package 笔试.A2022拼多多;

import org.python.antlr.ast.Str;

import java.util.Scanner;

public class third {
    public static void main(String arg[]){//main--来自高金磊
         Scanner scanner=new Scanner(System.in);
         int k=scanner.nextInt();
         char[] Bs=scanner.next().toCharArray();
         StringBuilder stringBuilder=new StringBuilder();
         int i =0;
        for (;  i<k ; i++) {
            if ((i+1)*2<Bs.length-1){
                stringBuilder.append('0');
            }else
                break;
        }
        for ( ;  i<k ; i++) {
            stringBuilder.append(Bs[i]);
        }
        for (; i <Bs.length ; i++) {
            stringBuilder.append(Bs[i-k]);

        }
        System.out.println(stringBuilder.toString());
    }
}
